package com.windgo.service;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.windgo.bean.MarketIssue;
import com.windgo.bean.vo.WxFootprintListVO;
import com.windgo.bean.vo.WxIssueVO;
import com.windgo.mapper.MarketIssueMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class WxIssueServiceImpl implements WxIssueService{
    @Autowired
    MarketIssueMapper marketIssueMapper;

    @Override
    public PageInfo<WxIssueVO> listWxIssue(Integer page, Integer limit) {
        PageHelper.startPage(page,limit);
        List<WxIssueVO> marketIssueList = marketIssueMapper.selectIssue();
        PageInfo<WxIssueVO> pageInfo = new PageInfo<>(marketIssueList);
        return pageInfo;
    }
}
